package org.westos.ChinaSoft2;

public class GoodsFactory {

    String gooodsname;
    int price;
    int number=10;

    public String getGooodsname() {
        return gooodsname;
    }

    public void setGooodsname(String gooodsname) {
        this.gooodsname = gooodsname;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public Object getObject(String name) {
        Object FoodBean = null;
        if (name == null) {
            FoodBean = null;
        }
        if (name == "fanbian") {
            FoodBean = new fanbianBean();
        }
        if (name == "binggan") {
            FoodBean = new bingganBean();
        }

        return FoodBean;
    }


    }